PokemonType

@Serializable
data class PokemonType(val slot: Int, val type: Handle.Named<Type>)(source)

The type of a Pokémon and its slot. See: https://pokeapi.co/docs/v2#pokemontype

Parameters

slot

The order the Pokémon's types are listed in.

type

The type the Pokémon has.

Constructors

Link copied to clipboard
constructor(slot: Int, type: Handle.Named<Type>)

Properties

Link copied to clipboard
val slot: Int
Link copied to clipboard